package com.sinosoft.vaccinetoai.utils.h3cai.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 接口通用结果
 * @author xzh
 * @date 2023-10-15 16:18
 * @since 1.0.3
 */
@Getter
@Setter
@ToString
public class H3cAlApiCommonResult {

    // 状态码
   private Integer code;

   // 消息
   private String msg;

   //消息
   private Object data;

   // 是否请求成功
   public  boolean isSuccess(){
       return this.code == 200;
   }

}
